package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * KB订单表
 *
 * @author WeiZiDong
 */
@Table(name = "`kb_order`")
@Data
@ApiModel("KB订单表")
public class KbOrder implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "记录id", example = "1")
    private Long id;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "1556946359031")
    private Date updateTime;
    @Column(name = "`delete_flag`")
    @ApiModelProperty(value = "1:删除，0：未删除", example = "1")
    private Integer deleteFlag;
    @Column(name = "`status_flag`")
    @ApiModelProperty(value = "1:启用，0：禁用", example = "1")
    private Integer statusFlag;
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "下单人ID", example = "1")
    private Long userId;
    @Column(name = "`goods_id`")
    @ApiModelProperty(value = "商品ID", example = "1")
    private Long goodsId;
    @Column(name = "`merchant_no`")
    @ApiModelProperty(value = "商户流水号", example = "String")
    private String merchantNo;
    @Column(name = "`transaction_no`")
    @ApiModelProperty(value = "交易流水号", example = "String")
    private String transactionNo;
    @Column(name = "`order_name`")
    @ApiModelProperty(value = "订单名称", example = "String")
    private String orderName;
    @Column(name = "`goods_pic`")
    @ApiModelProperty(value = "商品图片", example = "String")
    private String goodsPic;
    @Column(name = "`goods_specifications`")
    @ApiModelProperty(value = "商品规格", example = "String")
    private String goodsSpecifications;
    @Column(name = "`kb_price`")
    @ApiModelProperty(value = "商品KB价格", example = "1.0")
    private BigDecimal kbPrice;
    @Column(name = "`logistics_no`")
    @ApiModelProperty(value = "物流快递单号", example = "String")
    private String logisticsNo;
    @Column(name = "`logistics_num`")
    @ApiModelProperty(value = "物流快递编号", example = "String")
    private String logisticsNum;
    @Column(name = "`logistics_name`")
    @ApiModelProperty(value = "物流名称", example = "String")
    private String logisticsName;
    @Column(name = "`user_name`")
    @ApiModelProperty(value = "用户姓名", example = "String")
    private String userName;
    @Column(name = "`user_pic`")
    @ApiModelProperty(value = "用户头像", example = "String")
    private String userPic;
    @Column(name = "`order_time`")
    @ApiModelProperty(value = "下单时间", example = "2019-05-05 17:55:31")
    private Date orderTime;
    @Column(name = "`order_status`")
    @ApiModelProperty(value = "订单状态0:进行中1:已完成2：取消交易3：已结算", example = "1")
    private Integer orderStatus;
    @Column(name = "`pay_status`")
    @ApiModelProperty(value = "支付状态1未付款2已付款", example = "1")
    private Integer payStatus;
    @Column(name = "`pay_time`")
    @ApiModelProperty(value = "支付时间", example = "2019-05-05 17:55:31")
    private Date payTime;
    @Column(name = "`buy_num`")
    @ApiModelProperty(value = "购买数量", example = "1")
    private Integer buyNum;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注", example = "String")
    private String remark;

    private static final long serialVersionUID = 1L;
}
